import http from "@/utils/http";

// 分页
export const messagePage = (params)=> http.get('/adminapi/sys/message/page', params)

// 详情
export const messageDetail = (id)=> http.get(`/adminapi/sys/message/detail/${id}`)

// 删除
export const messageDelete = (id)=> http.delete(`/adminapi/sys/message/delete/${id}`)

// 阅读
export const messageRead = (data)=> http.post('/adminapi/sys/message/read', data)

// 统计消息
export const messageTotal = ()=> http.get('/adminapi/sys/message/total')
